package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the AFFAIRTYPECONFIRM database table.
 * 
 */
@Entity
@NamedQuery(name="Affairtypeconfirm.findAll", query="SELECT a FROM Affairtypeconfirm a")
public class Affairtypeconfirm implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="AFFAIRTYPECONFIRM_ATCID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="AFFAIRTYPECONFIRM_ATCID_GENERATOR")
	@Column(name="ATC_ID")
	private long atcId;

	@Column(name="ATC_ENDDATE")
	private Timestamp atcEnddate;

	@Column(name="ATC_FOUNDDATE")
	private Timestamp atcFounddate;

	@Column(name="ATC_LEIXING")
	private BigDecimal atcLeixing;

	@Column(name="ATC_REASON")
	private String atcReason;

	@Column(name="ATC_STARTDATE")
	private Timestamp atcStartdate;

	//bi-directional many-to-one association to Affaircategory
	@ManyToOne
	@JoinColumn(name="AFFCA_ID")
	private Affaircategory affaircategory;

	//bi-directional many-to-one association to StaffInformation
	@ManyToOne
	@JoinColumn(name="STAIN_ID")
	private StaffInformation staffInformation;

	public Affairtypeconfirm() {
	}

	public long getAtcId() {
		return this.atcId;
	}

	public void setAtcId(long atcId) {
		this.atcId = atcId;
	}

	public Timestamp getAtcEnddate() {
		return this.atcEnddate;
	}

	public void setAtcEnddate(Timestamp atcEnddate) {
		this.atcEnddate = atcEnddate;
	}

	public Timestamp getAtcFounddate() {
		return this.atcFounddate;
	}

	public void setAtcFounddate(Timestamp atcFounddate) {
		this.atcFounddate = atcFounddate;
	}

	public BigDecimal getAtcLeixing() {
		return this.atcLeixing;
	}

	public void setAtcLeixing(BigDecimal atcLeixing) {
		this.atcLeixing = atcLeixing;
	}

	public String getAtcReason() {
		return this.atcReason;
	}

	public void setAtcReason(String atcReason) {
		this.atcReason = atcReason;
	}

	public Timestamp getAtcStartdate() {
		return this.atcStartdate;
	}

	public void setAtcStartdate(Timestamp atcStartdate) {
		this.atcStartdate = atcStartdate;
	}

	public Affaircategory getAffaircategory() {
		return this.affaircategory;
	}

	public void setAffaircategory(Affaircategory affaircategory) {
		this.affaircategory = affaircategory;
	}

	public StaffInformation getStaffInformation() {
		return this.staffInformation;
	}

	public void setStaffInformation(StaffInformation staffInformation) {
		this.staffInformation = staffInformation;
	}

}